<!DOCTYPE HTML><html lang="en">
<HEAD>

<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >

<meta charset="utf-8">
<TITLE>Contributing a search result page</TITLE>

<link rel="stylesheet" type="text/css" HREF="../book.css">
</HEAD>
<BODY>
<H2>
Contributing a search result page</H2>

<p>You can contribute a customized search results page using
the <a href="../reference/extension-points/org_eclipse_search_searchResultViewPages.html"><b>org.eclipse.search.searchResultViewPages</b></a>
extension point.
</p>
<p>When contributing a search result view page, you specify the class of search result that the page should
be used for, and the name of the class that implements the page.  The following example is the JDT plug-in's 
contribution of the Java search results page:</p>
<pre>&lt;extension
	id="JavaSearchResultPage"
	point="org.eclipse.search.searchResultViewPages"&gt;
	&lt;viewPage
		id="org.eclipse.jdt.ui.JavaSearchResultPage"
		searchResultClass="org.eclipse.jdt.internal.ui.search.JavaSearchResult"
		class="org.eclipse.jdt.internal.ui.search.JavaSearchResultPage"&gt;
	&lt;/viewPage&gt;
&lt;/extension&gt;
</pre>
<p>The <b>class</b> must implement the <a href="../reference/api/org/eclipse/search/ui/ISearchResultPage.html"><b>ISearchResultPage</b></a>
interface and often extends <a href="../reference/api/org/eclipse/search/ui/text/AbstractTextSearchViewPage.html"><b>AbstractTextSearchViewPage</b></a>.
</p> 


</BODY>
</HTML>
